home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7.1 / 2001-04_-_Disc_7.1.iso / Data / Items.swf / scripts / DefineButton2_16 / BUTTONCONDACTION on(release).as
Text File  |  2001-02-01  |  828b  |  20 lines

  1. on(release){
  2.    if(_parent.currentTab == 1)
  3.    {
  4.       _parent.selectItem(6,_parent.demonumber6,_parent.lastButton,"TheCurrentDemo","demos",_parent.demoCount,"currentDemoCount","lastDemoBox");
  5.    }
  6.    if(_parent.currentTab == 2)
  7.    {
  8.       _parent.selectItem(6,_parent.extranumber6,_parent.lastButton,"TheCurrentExtra","extras",_parent.extraCount,"currentExtraCount","lastExtraBox");
  9.    }
  10.    if(_parent.currentTab == 3)
  11.    {
  12.       _parent.selectItem(6,_parent.filenumber6,_parent.lastButton,"TheCurrentFile","file",_parent.fileCount,"currentFileCount","lastFileBox");
  13.    }
  14.    if(_parent.currentTab == 4)
  15.    {
  16.       var i = _parent.gamenumber6 - 1;
  17.       _parent.selectItem(6,_parent.arGamesIndexSlice[i],_parent.lastButton,"TheCurrentGame","database",_parent.dbCount,"currentGameCount","lastGameBox");
  18.    }
  19. }
  20.